package com.upf1sh.service;

import com.upf1sh.bean.DCRec;
import com.upf1sh.mapper.DCRecMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DCRecService {
    @Resource
    private DCRecMapper dcRecMapper;

    /**
     * 插入，记录操作日志
     * 2023/6/7 16：13
     * UpF1sh
     *
     * @param dcRec
     */
    public void insert(DCRec dcRec) {
        dcRecMapper.insert(dcRec);
    }

    public List<DCRec> getAllRecords() {
        return dcRecMapper.selectList(null);
    }
}
